<div class="main-container-inner" ng-app="MyApp" ng-controller="ApiTaskListController" id="ApiTaskListController"
     style="">
    #parse("apideployList/sidebar.htm")
    <div class="main-content">
        #parse("apideployList/breadcrumb.htm")
        <div class="page-content">
            <div class="row">
                <div id="alertMessageDiv" style="text-align: center;"></div>
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover" id="taskListTable">
                        <thead>
                        <tr>
                            <th>操作</th>
                            <th>任务名</th>
                            <th>状态</th>
                            <th><i class="icon-time bigger-110 hidden-480"></i> 创建时间</th>
                        </tr>
                        </thead>
                        <tbody id="adList">
                        #foreach($task in $list)
                        <tr>
                            <td style="width: 200px"><a href="${contextPath}/console/apideploy/task/$task.id"><span
                                    class="label label-info">&nbsp; 查看任务 </span></a> &nbsp;<a href="javascript:;"
                                                                                              ng-click="openRemoveTaskModal($task.id)"><span
                                    class="label label-danger">&nbsp; 删除 </span></a></td>
                            <td><b>$task.name</b></td>
                            <td class="#if($task.status=='SUCCESS')td-success #elseif($task.status=='FAILED')td-failed#end">
                                $task.status.desc
                            </td>
                            <td style="width: 200px">$dateFormatUtils.format($task.creationDate,'yyyy年MM月dd日 HH时mm分')
                            </td>
                        </tr>
                        #end
                        </tbody>
                    </table>
                </div>
                #parse("apideployList/paginator.htm")
            </div>
        </div>
    </div>
    #parse("apideployList/modals.htm")
</div>